﻿@using CodeCamp.Models
@model UserRegisterModel
@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.EventName = "";
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = (@Model.EventDisplayName + " | Register User");
        ViewBag.EventName = @Model.EventDisplayName;
    }
    else
    {
        ViewBag.Title = "Code Camp | Register User";
        ViewBag.EventName = "Code Camp";
    }
}

@section headaddon {
<style>
    #Email
    {
        width: 30em;
    }
</style>
}

<h2>Registering for @ViewBag.EventName as an attendee?</h2>
@if (string.IsNullOrWhiteSpace(ViewBag.RegistrationUrl) || (ViewBag.RegistrationUrl == "."))
{
    <p>&nbsp;</p>
    <p>Attendee registration is not yet open - please check back later.</p>
}
else
{
<h3>Click here for <a href="@ViewBag.RegistrationUrl">@ViewBag.EventName attendee registration</a>.</h3>
<p>
    Free registration to attend @ViewBag.EventName is provided through EventBright.com.
    Space is limited,<br />so please <a href="@ViewBag.RegistrationUrl">sign up today</a>.
</p>
}
<p>&nbsp;</p>
@Html.Partial("RegisterUserPartial", @Model)

Questions or problems?  @Html.ActionLink("Contact Us", "Contact", "Home", new { eventName = Model.EventShortName }, null).

